package com.shierke.Ume.ui.activity.explore

import android.content.Context
import android.os.Bundle
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.shierke.Ume.R
import com.shierke.Ume.base.BaseNoTitleActivity
import com.shierke.Ume.ui.adapter.explore.ExploreDetailsAdapter
import com.shierke.Ume.ui.adapter.explore.ExploreLatestAdapter
import com.shierke.Ume.util.click
import com.shierke.Ume.util.startActivity
import kotlinx.android.synthetic.main.activity_explore_details.*

/**
 * Create by Ybx
 * on 2020-10-19
 * Desribe:
 *
 * 帖子详情
 */
class ExploreDetailsActivity : BaseNoTitleActivity() {


    companion object {
        fun startActivity(context: Context) {
            context.startActivity<ExploreDetailsActivity>()
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_explore_details)

        StatusBarUtils.setStatusBarTransparentAndFullScreen(this)



        discuss.click {

            ExploreInvitationDiscussActivity.startActivity(this)
        }

        recycle.layoutManager = object :
            StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL) {
            override fun canScrollVertically(): Boolean {
                return false
            }
        }

        val exploreDetailsAdapter = ExploreDetailsAdapter()
        recycle.adapter = exploreDetailsAdapter


    }
}